﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Text;


/// <summary>
/// 采集状态
/// </summary>
public class SingleCollectionState
{
    private static readonly SingleCollectionState instance = new SingleCollectionState();
    /// <summary>
    /// 单例访问对像
    /// </summary>
    public static SingleCollectionState Instance
    {
        get { return SingleCollectionState.instance; }
    }


    private double currentIndex = 1;

    public double CurrentIndex
    {
        get { return currentIndex; }
        set { currentIndex = value; }
    }

    private double count = 1;

    public double Count
    {
        get { return count; }
        set { count = value; }
    }

    private double percentage = 0;
    /// <summary>
    /// 当前百分比
    /// </summary>
    public double Percentage
    {
        get { return CurrentIndex / Count; }
    }
    /// <summary>
    /// 當前請求的URL
    /// </summary>
    ///Road='r',
    ///http://r3.tiles.ditu.live.com/tiles/r
    /// 衛星圖 a 
    /// http://t1.tiles.virtualearth.net/tiles/a
    //Aerial='a',
    /// <summary>
    /// 帶標注的衛星圖 h
    /// http://t1.tiles.virtualearth.net/tiles/h
    ///AerialWithLabels='h'
    public string CurrentGetUrl
    {
        get;
        set;
    }

    /// <summary>
    /// 當前地圖URL
    /// </summary>
    public string CurrentImgUrl
    {
        get;
        set;
    }

}